#ifndef __BaseViewer_H__
#define __BaseViewer_H__

#include "Utility.h"
class BaseViewer : public Layer
{
public:
    BaseViewer();
    virtual bool init();
    virtual bool initUI();
    virtual void initSearchPath() {};
    virtual void Export(std::string strPath) {};
    virtual bool LoadFile(std::string strPath);
    virtual ui::Widget* createItem(int nIndex, std::string strName);
    virtual void ClearCache() {};
    CC_SYNTHESIZE_READONLY(bool, m_bHasExportOne, HasExportOne);
    CC_SYNTHESIZE_READONLY(bool, m_bHasExportAll, HasExportAll);
    CC_SYNTHESIZE_READONLY(bool, m_bInitUI, HasInitUI);

protected:
    Layer *m_pUINode;
    Layer *m_pViewNode;
    std::string m_strFilePath;
};

#endif // __ImageListViewer_SCENE_H__
